﻿using Abp.Dependency;
using Abp.Domain.Repositories;
using Castle.Core.Logging;
using DHJ.Cost.MessageHandle;
using DHJ.Messages.Production;
using Newtonsoft.Json;
using NServiceBus;

namespace DHJ.Cost.Tasks
{
    public class BarcodeDeletedHandler : IHandleMessages<BarcodeDeleted>
    {
        public async System.Threading.Tasks.Task Handle(BarcodeDeleted message, IMessageHandlerContext context)
        {
            var handler = IocManager.Instance.Resolve<IMessageHandleAppService>();
            await handler.BarcodeDeletedHandler(message);

        }
    }
}